public class MazeEdge {

	// Edge means that there is a path from a to b
	private MazeNode source;
	private MazeNode destination;
	private int cost;

	public MazeNode getSource() {
		return source;
	}

	public MazeNode getDestination() {
		return destination;
	}

	public int getCost() {
		return cost;
	}

	public MazeEdge(MazeNode source, MazeNode destination, int cost) {
		this.source = source;
		this.destination = destination;
		this.cost = cost;
	}
	
	public String toString(){
		return this.getSource().getName()+ "-->" + this.getDestination().getName();
	}
}
